home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / Script Examples / Simple Atom Extender / Simple Atom Ext.r < prev    next >
Encoding:
Text File  |  1994-11-15  |  3.0 KB  |  159 lines  |  [TEXT/MPS ]

  1. //
  2. //
  3. //        Copyright 1993-1994, Apple Computer, Inc., All Rights Reserved
  4. //
  5.  
  6. #include "InstallerTypes.r"
  7.  
  8. include "DirectCopyExtender";
  9.  
  10.  
  11. /************************** Target File Spec. resources **********************************/
  12. resource 'intf' (10000) {
  13.     format1 {
  14.         noSearchForFile,                 // use default search path
  15.         
  16.         TypeCrMustMatch,                 // If this is set to TypeCrMustMatch
  17.                                         // then a file with a different type
  18.                                         // and creator than those specified
  19.                                         // below will not be replaced.
  20.                                         // If this is set to TypeCrNeedNotMatch
  21.                                         // then type and creator of an existing
  22.                                         // target file are ignored.
  23.         
  24.         // The Type and Creator fields will be used to set the
  25.         // file's Type and Creator when a new file is created. 
  26.         'APPL',                         // TYPE for new file
  27.         'ttxt',                         // CREATOR for new file
  28.         
  29.         0,                                 // finder attribute flags
  30.                                         // filled by ScriptCheck is value is 0
  31.         
  32.         1,                                  // creation date for new file
  33.         1,                                  // modification date for new file
  34.                                         // NOTE: DATE values are filled
  35.                                         // by ScriptCheck if the value is 1
  36.                                             
  37.         0,                                 // search proc ID ( 'insp' ), none used
  38.         
  39.         ":TeachText"
  40.         }
  41.     };
  42. /************************** Source File Spec. resources **********************************/
  43. resource 'infs' (20000) {
  44.     'APPL',
  45.     'ttxt',
  46.     0x1,
  47.     noSearchForFile,
  48.     TypeCrMustMatch,
  49.     "Tidbits:Apple Utilities:TeachText"
  50. };
  51.  
  52.  
  53. /************************** File Atom resource **********************************/
  54. resource 'infa' (10000) {
  55.     format1 {
  56.         deleteWhenRemoving,
  57.         deleteWhenInstalling,
  58.         copy,
  59.         dontIgnoreLockedFile,
  60.         dontSetFileLocked,
  61.         useVersProcToCompare,
  62.         srcNeedExist,
  63.         rsrcForkInRsrcFork,
  64.         leaveAloneIfNewer,
  65.         updateExisting,
  66.         copyIfNewOrUpdate,
  67.         rsrcFork,
  68.         dataFork,
  69.         0,
  70.         0,
  71.         10000,
  72.         {    20000, 0, 0 },
  73.         0x07008000,
  74.         0,
  75.         129,
  76.         ""
  77.     }
  78. };
  79.  
  80.  
  81. /************************** Resource Atom resource **********************************/
  82. resource 'inra' (10000) {
  83.     format1 {
  84.         dontDeleteWhenRemoving,
  85.         deleteWhenInstalling,
  86.         copy,
  87.         leaveAloneIfNewer,
  88.         tgtRequired,
  89.         updateExisting,
  90.         copyIfNewOrUpdate,
  91.         ignoreProtection,
  92.         srcNeedExist,
  93.         byID,
  94.         nameNeedNotMatch,
  95.         0,
  96.         10000,
  97.         'ICON', 
  98.         128,
  99.         0,
  100.         "",
  101.         {    20000, 'ICON', 128, 0, "" },
  102.         0x0,
  103.         0,
  104.         129,
  105.         ""
  106.     }
  107. };
  108.  
  109. /************************** Atom Extender resource **********************************/
  110. resource 'inex' (129) {
  111.     format0 {
  112.         sendInitMessage,
  113.         sendBeforeMessage,
  114.         sendAfterMessage,
  115.         sendSuccessMessage,
  116.         sendCancelMessage,
  117.         continueBusyCursors,
  118.         'infn',
  119.         144,
  120.         0,
  121.         50000,
  122.         ""
  123.     }
  124. };
  125.  
  126.  
  127.  
  128. /************************** Package resources **********************************/
  129. resource 'inpk' (20037) {
  130.     format0 {
  131.         showsOnCustom,
  132.         notRemovable,
  133.         dontForceRestart,
  134.         0,
  135.         0,
  136.         "TeachText (using direct copy Atom Extender)",
  137.         {    
  138.             'infa', 10000,
  139.         }
  140.     }
  141. };
  142.  
  143.  
  144. resource 'inpk' (20038) {
  145.     format0 {
  146.         showsOnCustom,
  147.         notRemovable,
  148.         dontForceRestart,
  149.         0,
  150.         0,
  151.         "ICON ID#128 from TeachText (using direct copy Atom Extender)",
  152.         {    
  153.             'inra', 10000,
  154.         }
  155.     }
  156. };
  157.  
  158.  
  159.